package com.teira.rhrrealstate.session;

import com.teira.rhrrealstate.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("tipoDocumentoHome")
public class TipoDocumentoHome extends EntityHome<TipoDocumento> {

	public void setTipoDocumentoId(Long id) {
		setId(id);
	}

	public Long getTipoDocumentoId() {
		return (Long) getId();
	}

	@Override
	protected TipoDocumento createInstance() {
		TipoDocumento tipoDocumento = new TipoDocumento();
		return tipoDocumento;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public TipoDocumento getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
